import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class MenuView extends JPanel{
	
	private JTabbedPane tabbedPane;
	private StatusModel sm;

	public MenuView(){
		super(new GridLayout(1, 1));
		tabbedPane = new JTabbedPane();
		setBackground(new Color(255, 220, 51));
		setSize(350,325);
		
		StatisticsView statistics = new StatisticsView();
		tabbedPane.addTab("Car Info", statistics);
		tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
		statistics.setSize(300, 290);
		
		sm = new StatusModel();
		StatusView rationsAndPace = new StatusView(sm);
		StatusController rpcontroller = new StatusController(rationsAndPace, sm);
		rationsAndPace.setOkBtnLbl("Change Settings");
		rationsAndPace.setBackground(new Color(255, 220, 51));
		tabbedPane.addTab("Rations and Pace", rationsAndPace);
		tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
		rationsAndPace.setSize(300,290);
		
		ActivityView mission = new ActivityView();
		tabbedPane.addTab("Travel Activities", mission);
		tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
		mission.setSize(300,290);
		
		add(tabbedPane);
		tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
	}
}
